package com.heima.reggie.mapper;
import java.util.Collection;
import java.util.List;

import com.heima.reggie.domain.Setmeal;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
* @author liulanhui
* @description 针对表【setmeal(套餐)】的数据库操作Mapper
* @createDate 2023-01-03 14:00:51
* @Entity com.heima.reggie.domain.Setmeal
*/
@Mapper
public interface SetmealMapper extends BaseMapper<Setmeal> {
    Setmeal selectOneByCategoryId(@Param("categoryId") Long categoryId);

    List<Setmeal> selectAllByCategoryId(@Param("categoryId") Long categoryId);

    List<Setmeal> selectAllById(@Param("id") Long id);

    Setmeal selectOneById(@Param("id") Long id);

    int updateStatusByIdIn(@Param("status") Integer status, @Param("idList") Collection<Long> idList);



}




